home *** CD-ROM | disk | FTP | other *** search
Text File | 2001-02-20 | 754 b | 42 lines | [AMAS/AMAP] |
- // -* FreezeBehavior.js *-
- //
- // Name: Freeze behavior
- // Description:
- // Author:
- // Version: $Id: FreezeBehavior.js,v 1.1 2000/12/21 15:03:56 consumer Exp $
- //
-
- function FreezeBehavior()
- {
- // No need for an object with this behavior.
- }
-
- function FreezeBehaviorStart(solidName)
- {
- // var pos = TSMakeStringFromPoint(TSSolidGetPosition(solidName));
- TSUpdateNodeAttribute(solidName, 'fixed', '1');
- // TSSolidSetPosition(pos);
- }
-
- function FreezeBehaviorStop()
- {
- }
-
- //
- // Event functions
- //
-
- function FreezeBehaviorStartEvent(obj, event)
- {
- var targetSolid = TSGetExtraParam(event, 'targetSolid');
-
- if (targetSolid == "")
- FreezeBehaviorStart(obj);
- else
- FreezeBehaviorStart(targetSolid);
- }
-
- function FreezeBehaviorStopEvent(obj, event)
- {
- }
-